package com.itheima.dao;

import com.itheima.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    List<User> findAll();

    void save(User user);

    void deleteById(String id);

    User findById(String id);

    void update(User user);

    User login(@Param("username") String username, @Param("password") String password);

    void deleteAll(String[] ids);

    int findByName(String name);
}
